<script setup lang="ts">
import { useMemberStore } from '@/stores'
const memberStore = useMemberStore()

const saveProfileData = () => {
  memberStore.setProfile({ token: '11111' })
}
const clearProfileData = () => {
  memberStore.clearProfile()
}
</script>

<template>
  <view class="index">
    <view>index001</view>
    <view>
      <button type="primary" size="mini" @click="saveProfileData">存储数据</button>
      <button type="default" size="mini" @click="clearProfileData">清除数据</button>
    </view>
  </view>
</template>

<style lang="scss">
//
</style>
